home *** CD-ROM | disk | FTP | other *** search
-
- /*
- Copyright Cornell University 1986. All rights are reserved.
-
- */
-
- /* key mapping vars */
-
- #ifndef _KEYDEF
- #define _KEYDEF
-
- /* action queue handling */
- /* define the token type returned from the user interface routine */
-
- struct token {
- unsigned char class;
- unsigned char entry;
- };
-
- typedef struct token TOKEN;
- extern int q_cnt;
-
- extern void keyputaction();
- extern void putaction();
- extern struct token * getaction();
-
- /* key buffer get key struct * call */
- struct key {
- char keycode;
- char thechar;
- int modifiers;
- };
-
-
- /* key macro items */
-
- struct keyxlist {
- int actlen; /* number of actions in key exception resource */
- Handle hkeyact; /* handle to key exception resource */
- struct keyxlist * nextkey;
- };
-
- /* structure of the keyid/action list thing hkeyact points to */
- struct keyactlist {
- long keyid;
- struct token act[1];
- };
-
- extern char * keyname(); /* forward declaration */
- extern struct token * keyxfind(); /* forward declaration */
- extern struct keyxlist * keyxptr(); /* forward declaration */
- extern struct keyxlist * keyxhead;
-
- #endif
-